package com.vcredit.creditcat.manager;

import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vcredit.creditcat.api.IBannerManager;
import com.vcredit.creditcat.model.Banner;
import com.vcredit.creditcat.service.BannerService;
import com.vcredit.framework.annotation.Log;


@Service(protocol = { "protocol1" }, version = "1.0")
public class BannerManager implements IBannerManager{
	@Autowired
    private BannerService bannerService;
	@Log
	@Override
	public List<Banner> queryBannerByKind(String bannerKind,String appDesc) {
		if(StringUtils.isBlank(appDesc)){
			appDesc="default";
		}
		List<Banner> list = bannerService.queryBannerByKind(bannerKind,appDesc);
		return list;
	}
}
